package com.gaomall.seckill.enums;

import lombok.Getter;

@Getter
public enum ResponseStatusCode {

    //通用错误类型10001
    SUCCESS(200,"SUCCESS"),
    ERROR(400,"FAIL"),
    PARAMETER_VALIDATION_ERROR(10001, "参数不合法"),
    UNKNOWN_ERROR(10002, "未知错误"),

    NEED_LOGIN(10003,"请先登录"),

    // 商品
    GOODS_NOT_EXIST(10, "商品不存在"),
    ;

    private final String return_msg;
    private final int return_code;

    ResponseStatusCode(int return_code, String return_msg) {
        this.return_code = return_code;
        this.return_msg = return_msg;
    }

}
